

cmake_minimum_required(VERSION 3.4.1)

#引入头文件
include_directories(include ./)

#message(${CMAKE_SOURCE_DIR}/../../../libs/${ANDROID_ABI}/libavutil.so)

aux_source_directory(. SOURCE)

add_library(
        native-lib
        SHARED
        ${SOURCE})

# 设置变量
set(libs ${CMAKE_SOURCE_DIR}/../../../libs/${ANDROID_ABI})
# 引入库查找路径
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${libs}")


# 引入头文件
target_link_libraries(
        native-lib
        avutil
        avcodec
        avfilter
        avformat
        swscale
        swresample
        #        rtmp
        android
        z
        log
)

